import { get, post ,login,postList} from './http'

/* 登录 */
export const _login = params => login('/admin/role/login', params);

/* 导航 */
export const leftMenuTree = params => post('/admin/role/leftMenuTree', params);

/* 系统模块 */
export const moduleList = params => post('/admin/role/moduleList', params);
export const addModule = params => post('/admin/role/addModule', params);
export const updateModule = params => post('/admin/role/updateModule', params);
export const deleteModule = params => post('/admin/role/deleteModule', params);



/* 系统账号 */
export const accountList = params => post('/admin/role/accountList', params);
export const addAccount = params => post('/admin/role/addAccount', params);

/* 角色列表 */
export const roleList = params => post('/admin/role/roleList', params);
export const addRole = params => post('/admin/role/addRole', params);
export const deleteRole = params => post('/admin/role/deleteRole', params);
export const updateRole = params => postList('/admin/role/updateRole', params);
export const moduleTree = params => post('/admin/role/moduleTree', params);
